/**
 * Created by wry on 2015/4/2.
 */

module.exports = function (app) {
    var lottery = require('../controllers/lottery-controller');

    app.get('/rest/' + RESTFullServiceVersion + '/lottery/getLotteryDetail/:userId/:lotteryId', lottery.getLotteryDetail);
    app.get('/rest/' + RESTFullServiceVersion + '/lottery/generateLotteryTicket/:userId/:lotteryId', lottery.generateLotteryTicket);
    app.get('/rest/' + RESTFullServiceVersion + '/lottery/getLotteryAwardList/:userId/:lotteryId/:page', lottery.getLotteryAwardList);

    //1.7.0 新版老虎机接口
    app.get('/rest/' + RESTFullServiceVersion + '/lottery/detail/:userId/:lotteryId', lottery.getLotteryDetailNew);
    app.get('/rest/' + RESTFullServiceVersion + '/lottery/draw/:userId/:lotteryId', lottery.userLotteryDraw);
    app.get('/rest/' + RESTFullServiceVersion + '/lottery/luckyUsers/:userId/:lotteryId/:page', lottery.getLuckyUsers);
    app.get('/rest/' + RESTFullServiceVersion + '/lottery/myLuckyRecord/:userId/:lotteryId/:page', lottery.getMyLuckyRecord);


    //抽流量
    //app.get('/rest/'+RESTFullServiceVersion+'/netFlow/:mobilePhone/:userId',lottery.getNetFlow);
    //app.get('/rest/'+RESTFullServiceVersion+'/netFlow/share/:mobilePhone/:userId',lottery.getShareData);

};